/**
 * 
 */
package fr.univnantes.lina.uima.connectors.ftb;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @author hernandez
 *
 */
public class WordForms {

	private Map<String,WordFormCatCounter> wordFormCatCounterMap;
	private Map<String,WordCatFormOtherCounters> wordCatFormOtherCountersMap;
	
	/**
	 * @return the word form cat counter
	 */
	protected WordFormCatCounter getWordFormCatCounter(String word) {
		if (wordFormCatCounterMap.containsKey(word)) {
			return wordFormCatCounterMap.get(word);
		}
		else {return new WordFormCatCounter();}
		
	}
	

	/**
	 * @return the word cat form other counter
	 */
	protected WordCatFormOtherCounters getWordCatFormOtherCounters(String wordCat) {
		if (wordCatFormOtherCountersMap.containsKey(wordCat)) {
			return wordCatFormOtherCountersMap.get(wordCat);
		}
		else {return new WordCatFormOtherCounters();}
		
	}

	/**
	 * @return the wordProperties
	 */
	protected Set<String> getWords() {
		return wordFormCatCounterMap.keySet();
		
	}


	/**
	 * 
	 */
	public WordForms () {
		wordFormCatCounterMap = new HashMap<String,WordFormCatCounter>();
		wordCatFormOtherCountersMap = new HashMap<String,WordCatFormOtherCounters>();
	}
	
}
